<form class="form-horizontal" action="/admin/profile/info" method="post" accept-charset="utf-8">
    {% raw xsrf_form_html() %}
    <div class="form-group">
        <label for="email" class="col-md-2 col-lg-1 control-label">邮&nbsp;&nbsp;&nbsp;箱:</label>
        <div class="col-md-3 col-lg-2">
            <label id="email" class="control-label">{{ current_user.email }}</label>
            <input type="hidden" name="email" value="{{ current_user.email }}">
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 col-lg-1 control-label" for="username">用户名:</label>
        <div class="col-md-3 col-lg-2">
            <input id="username" name="username" value="{{ current_user.username }}" type="text" class="form-control"
                   placeholder="2-20个字符, 英文、数字或下划线" minlength="2" maxlength="20" required>
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-2 col-lg-1 control-label" for="nickname">姓&nbsp;&nbsp;&nbsp;名:</label>
        <div class="col-md-3 col-lg-2">
            <input id="nickname" name="nickname" value="{{ current_user.nickname }}" type="text" class="form-control"
                   placeholder="2-20个中文字符" minlength="2" maxlength="20">
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-2 col-lg-offset-1 col-lg-1">
            <input type="button" id="submit" value="保存" class="btn btn-primary">
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-2 col-md-2 col-lg-offset-1 col-lg-1">
            <span class="label label-info sr-only" style="font-size:14px;" id="msg"></span>
        </div>
    </div>
</form>